<div class="hProducts form">
    <?php echo $this->Form->create('HProduct'); ?>
    <fieldset>
        
        <legend><?php echo __('Agregar Compra'); ?></legend>

        <?php // echo $this->element('hproducts/fields') 
        
		echo $this->Form->input('shop_id');
		echo $this->Form->input('product_id');
		echo $this->Form->input('date');
		echo $this->Form->input('purchase_price');
		echo $this->Form->input('quantity');
                ?>
        
    </fieldset>
    <?php echo $this->Form->end(__('Guardar')); ?>
</div>
<div class="actions">
    <h3><?php echo __('Actions'); ?></h3>
    <ul>

        <li><?php echo $this->Html->link(__('List H Products'), array('action' => 'index')); ?></li>
        <li><?php echo $this->Html->link(__('List Shops'), array('controller' => 'shops', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Shop'), array('controller' => 'shops', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Products'), array('controller' => 'products', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Product'), array('controller' => 'products', 'action' => 'add')); ?> </li>
    </ul>
</div>
